package com.xp.pgoj.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author <a href=""https://github.com/Fzs0>逢左使</a>
 * @create 2024/09/24 22:43
 * @Description: 评论
 */
@TableName(value ="comment")
@Data
public class Comment implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 评论的题目id
     */
    private Long questionId;

    /**
     * 内容

     */
    private String content;

    /**
     * 是否为发布者
     */
    private Integer isPublisher;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
